<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>学生信息管理系统</title>
    <link href="css/bootstrap.min.css", rel="stylesheet">
    <link href="css/custom.css", rel="stylesheet">
</head>

<body>
    <div class="demo form-bg" style="text-align: center; width: 100%; height: 100%">
        <div class="container" style="padding-top: 150px">
            <div class="row">
                <div class="col-md-offset-3 col-md-6">
                    <%-- form表单，对应登录的LoginServlet --%>
                    <form class="form-horizontal" action="login" method="post">
                        <span class="heanding">管理员登录</span>
                        <div class="form-group">
                            <input type="text" class="form-control" name="username" placeholder="用户名"/>
                            <i class="fa fa-user"></i>
                        </div>
                        <div class="form-group help">
                            <input type="password" class="form-control" name="password" placeholder="密 码"/>
                            <i class="fa fa-lock"></i>
                            <a href="#" class="fa fa-question-circle"></a>
                        </div>
                        <div class="form-group">
                            <button type="submit" class="btn btn-default">登录</button>
                        </div>
                        <span style="color: red">
<%--                            <%= request.getAttribute("error") == null ? "" : request.getAttribute("error")%>--%>
                            ${error}
                        </span>
                    </form>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
